<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
$(document).ready(function() {    
	var container = $.leaveContainer().id("c-1"); 
	var header    = $.leaveHeader().caption("뉴스")
						.addLeft($.leaveButton().caption("Home").type("").click(function () {container.moveLeftContainer();}))
						.addRight($.leaveButton().caption("Back").type("").click(function () {history.back(1);}));
 
	var content   = $.leaveContent(); 
	var footer    = $.leaveFooter(); 
	var copyright = $.leaveCopyright();
	 
 
	
	container.header(header);
	container.content(content.add(
		$.leaveGrid().id("zzzz1").caption("정치 뉴스").data(
			[{"id" : 1, "a" : "하하하 오세훈 강남시장"}, 
			 {"id" : 2, "a" : "인천은 어떻게"}, 
			 {"id" : 3,  "a" : "역쉬 시흥시"}]
		).touch(function(index, data) {
			location.href = '${pageContext.request.contextPath}/sample/form.do?id=' + data.id;
		})		
	));
	container.footer(footer); 
	container.copyright(copyright);
	
	container.render(); 
 	 
});